RoadForm Class Reference

#include <RoadForm.h>

List of all members.

Public Types

enum  { IDD = IDD_ROADFORM }

Public Member Functions

virtual void OnInitialUpdate ()
afx_msg void OnBnClickedButton1 ()
afx_msg void OnBnClickedButton2 ()
afx_msg void OnBnClickedButton3 ()
afx_msg void OnBnClickedButton4 ()
afx_msg void OnBnClickedButton5 ()
afx_msg void OnBnClickedButton6 ()
afx_msg void OnBnClickedButton7 ()
afx_msg void OnBnClickedButton8 ()
afx_msg void OnBnClickedButton9 ()
afx_msg void OnBnClickedButton10 ()
afx_msg void OnBnClickedButton11 ()
afx_msg void OnBnClickedButton12 ()
afx_msg void OnRoadOnelane ()
afx_msg void OnRoadOnecompletelane ()
afx_msg void OnRoadTwoonecompleteonehalflane ()
afx_msg void OnRoadTwohalflane ()
void OnUpdateAll (CCmdUI *CCmd)

Protected Member Functions

 RoadForm ()
virtual ~RoadForm ()
virtual void DoDataExchange (CDataExchange *pDX)

Protected Attributes

CButton roadButton1
CButton roadButton2
CBitmapButton tekSeritRoadButton3
CButton ikiSeritRoadButton4
HICON m_h_icon
HICON m_h_icon_road_round_cross
HICON m_h_icon_road_cross
HICON tekSeritRoadIcon3
HICON ikiSeritRoadIcon4


Detailed Description

RoadForm Class. The Form View in the ToolBox for the TrafficLights, ie. red, yellow, green.

Definition at line 5 of file RoadForm.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration for the RoadForm View of the resources of GUI.

Enumerator:
IDD 

Definition at line 17 of file RoadForm.h.


Constructor & Destructor Documentation

RoadForm::RoadForm (   )  [protected]
 

Definition at line 21 of file RoadForm.cpp.

References theApp.

RoadForm::~RoadForm (   )  [protected, virtual]
 

Definition at line 35 of file RoadForm.cpp.

References ikiSeritRoadIcon4, m_h_icon_road_cross, and m_h_icon_road_round_cross.


Member Function Documentation

void RoadForm::DoDataExchange (  CDataExchange *  pDX  )  [protected, virtual]
 

Definition at line 52 of file RoadForm.cpp.

References ikiSeritRoadButton4, roadButton1, roadButton2, and tekSeritRoadButton3.

void RoadForm::OnBnClickedButton1 (   ) 
 

Replaces the ToolBox View from Roads View to Roads View. That is no action.

Definition at line 161 of file RoadForm.cpp.

void RoadForm::OnBnClickedButton10 (   ) 
 

Show/Hides the control points of the road.

Definition at line 182 of file RoadForm.cpp.

References RoadMap::addNewRoad(), RoadMap::clearRoadMap(), DRAW_ROAD, OSGWindows::getConstantRoot(), OSGWindows::getCurrentFrameId(), OnBnClickedButton11(), OnBnClickedButton12(), OnBnClickedButton8(), ONE_COMPLETE, ONE_HALF, OnRoadOnecompletelane(), OnRoadOnelane(), OnRoadTwohalflane(), OnRoadTwoonecompleteonehalflane(), OnUpdateAll(), osgwind, RoadMap::pinControl(), RELEASE_ROAD, C4WaySplitter::ReplaceView(), theRoadMap, TWO_COMPLETECOMPLETE_COMPLETEHALF, and TWO_HALFHALF_HALFHALF.

afx_msg void RoadForm::OnBnClickedButton11 (   ) 
 

Clears the drawn road map.

Referenced by OnBnClickedButton10().

afx_msg void RoadForm::OnBnClickedButton12 (   ) 
 

Replaces the ToolBox View from Roads View to Environmental Objects View.

Referenced by OnBnClickedButton10().

void RoadForm::OnBnClickedButton2 (   ) 
 

Replaces the ToolBox View from Roads View to Vehicles View.

Definition at line 103 of file RoadForm.cpp.

References C4WaySplitter::ReplaceView().

void RoadForm::OnBnClickedButton3 (   ) 
 

Replaces the ToolBox View from Roads View to TrafficLights View.

Definition at line 109 of file RoadForm.cpp.

References C4WaySplitter::ReplaceView().

void RoadForm::OnBnClickedButton4 (   ) 
 

Replaces the ToolBox View from Roads View to TrafficSigns View.

Definition at line 115 of file RoadForm.cpp.

References C4WaySplitter::ReplaceView().

void RoadForm::OnBnClickedButton5 (   ) 
 

Sets the draw mode of the system to draw one half way road.

Definition at line 134 of file RoadForm.cpp.

References RoadMap::addNewRoad(), DRAW_ROAD, ONE_HALF, RELEASE_ROAD, and theRoadMap.

void RoadForm::OnBnClickedButton6 (   ) 
 

Sets the draw mode of the system to draw 2 constant way road.

Definition at line 148 of file RoadForm.cpp.

References RoadMap::addNewRoad(), DRAW_ROAD, RELEASE_ROAD, theRoadMap, and TWO_HALFHALF_HALFHALF.

void RoadForm::OnBnClickedButton7 (   ) 
 

Sets the draw mode of the system to draw one constant way road.

Definition at line 121 of file RoadForm.cpp.

References RoadMap::addNewRoad(), DRAW_ROAD, ONE_COMPLETE, RELEASE_ROAD, and theRoadMap.

afx_msg void RoadForm::OnBnClickedButton8 (   ) 
 

Sets the draw mode of the system to draw two complete complete way road.

Referenced by OnBnClickedButton10().

void RoadForm::OnBnClickedButton9 (   ) 
 

Texturizes the drawn road skeleton

Definition at line 166 of file RoadForm.cpp.

References RoadMap::loadRoadScene(), RELEASE_ROAD, SELECT, TEXTURIZE, and theRoadMap.

void RoadForm::OnInitialUpdate (   )  [virtual]
 

Responsible from making ready the environmental Object Form View.

Definition at line 42 of file RoadForm.cpp.

References ikiSeritRoadButton4, ikiSeritRoadIcon4, m_h_icon_road_cross, m_h_icon_road_round_cross, roadButton1, roadButton2, tekSeritRoadButton3, and tekSeritRoadIcon3.

afx_msg void RoadForm::OnRoadOnecompletelane (   ) 
 

Sets the draw mode of the system to draw one constant way road.

Referenced by OnBnClickedButton10().

afx_msg void RoadForm::OnRoadOnelane (   ) 
 

Sets the draw mode of the system to draw one half way road.

Referenced by OnBnClickedButton10().

afx_msg void RoadForm::OnRoadTwohalflane (   ) 
 

Sets the draw mode of the system to draw two half ways road.

Referenced by OnBnClickedButton10().

afx_msg void RoadForm::OnRoadTwoonecompleteonehalflane (   ) 
 

Sets the draw mode of the system to draw one complete one half way road.

Referenced by OnBnClickedButton10().

void RoadForm::OnUpdateAll (  CCmdUI *  CCmd  ) 
 

Updates the Road Form View.

Parameters:
CCmd a pointer to CCmdUI

Referenced by OnBnClickedButton10().


Member Data Documentation

CButton RoadForm::ikiSeritRoadButton4 [protected]
 

Definition at line 28 of file RoadForm.h.

Referenced by DoDataExchange(), and OnInitialUpdate().

HICON RoadForm::ikiSeritRoadIcon4 [protected]
 

Definition at line 33 of file RoadForm.h.

Referenced by OnInitialUpdate(), and ~RoadForm().

HICON RoadForm::m_h_icon [protected]
 

Definition at line 29 of file RoadForm.h.

HICON RoadForm::m_h_icon_road_cross [protected]
 

Definition at line 31 of file RoadForm.h.

Referenced by OnInitialUpdate(), and ~RoadForm().

HICON RoadForm::m_h_icon_road_round_cross [protected]
 

Definition at line 30 of file RoadForm.h.

Referenced by OnInitialUpdate(), and ~RoadForm().

CButton RoadForm::roadButton1 [protected]
 

Definition at line 25 of file RoadForm.h.

Referenced by DoDataExchange(), and OnInitialUpdate().

CButton RoadForm::roadButton2 [protected]
 

Definition at line 26 of file RoadForm.h.

Referenced by DoDataExchange(), and OnInitialUpdate().

CBitmapButton RoadForm::tekSeritRoadButton3 [protected]
 

Definition at line 27 of file RoadForm.h.

Referenced by DoDataExchange(), and OnInitialUpdate().

HICON RoadForm::tekSeritRoadIcon3 [protected]
 

Definition at line 32 of file RoadForm.h.

Referenced by OnInitialUpdate().


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:14 2006 for TraffEdu by  doxygen 1.4.6-NO